WiFiServer::Application.routes.draw do
 devise_for :users

devise_for :admin_users, ActiveAdmin::Devise.config
 ActiveAdmin.routes(self)
devise_scope :user do
      post 'registration' => 'registration#create', :as => 'register'
      post 'session' => 'session#create', :as => 'login'
      get 'taskscomplete' => 'tasks#complete', :as => 'tasks'
      delete 'session' => 'session#destroy', :as => 'logout'
    end
    get 'tasks' => 'tasks#index', :as => 'tasks'
end
